from django.core.serializers import serialize
from rest_framework.serializers import ModelSerializer

from home.models import NavModel, BannerModel


class NavSerializer(ModelSerializer):
    class Meta:
        model = NavModel
        fields = ['id','navname','link','ishttp']

class BannerSerializer(ModelSerializer):
    class Meta:
        model = BannerModel
        fields = ['id','title','imgsrc','link','ishttp']

